#include "junix.h"

int a[]=
{
	[1]=99,
	[2]=100,
	[55]=1234
};

char *FD[]=
{
	[STDIN_FILENO]="STDIN_FILENO",
	[STDOUT_FILENO]="STDOUT_FILENO",
	[STDERR_FILENO]="STDERR_FILENO"
};

typedef struct A
{
	int i;
	union{
		char data_b;
		long data_l;
	}data;
#define data_b data.data_b 
#define data_l data.data_l 
} A_t;

int main(int argc, char **argv)
{
	printf("%d\n",a[1]);
	printf("%d\n",a[2]);
	printf("%d\n",a[55]);

	printf("%s\n",FD[0]);
	printf("%s\n",FD[1]);
	printf("%s\n",FD[2]);

	A_t aa=
	{
		.i=99,
		.data_b='X'
	};

	printf("%d\n",aa.i);
	printf("%c\n",aa.data_b);

	printf("%d\n",aa.i);
	printf("%c\n",aa.data_b);

    exit(0);
}

